package cn.starrysky108.simpleerp.purchase.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;

/**
 * <p>
 * 采购明细单
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("purchase_detail")
@ApiModel(value = "PurchaseDetail对象", description = "采购明细单")
public class PurchaseDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "采购单id")
    @TableField("purchase_id")
    private Long purchaseId;

    @ApiModelProperty(value = "产品sku_id")
    @TableField("sku_id")
    private Long skuId;

    @ApiModelProperty(value = "采购数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "原价")
    @TableField("original_price")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "成交价")
    @TableField("final_price")
    private BigDecimal finalPrice;



}
